﻿@if (ViewContext.HttpContext.GetOverriddenBrowser().IsMobileDevice)
{
    @:触屏版
    @Html.ActionLink("电脑版", "SwitchView", "ViewSwitcher", new { mobile = false, returnUrl = Request.Url.PathAndQuery }, new { rel = "external" })
}
else
{
    @Html.ActionLink("触屏版", "SwitchView", "ViewSwitcher", new { mobile = true, returnUrl = Request.Url.PathAndQuery }, new { rel = "external" })
    @:电脑版
}